package com.hh.controller.front;

import com.hh.commonutils.Result;
import com.hh.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/eduvod/video")
public class FrontVodController {
    @Autowired
    private VideoService videoService;

    @GetMapping("getPlayAuth/{vid}")
    public Result getPlayAuth(@PathVariable String vid){
        String auth = videoService.getPlayAuth(vid);
        return Result.success().data("playAuth", auth);
    }
}
